import 'package:flutter/material.dart';
import 'package:zhihuishequ/pages/home.dart';
import 'package:zhihuishequ/pages/login.dart';
import 'package:zhihuishequ/routes.dart';

void main(){
  runApp(App());
}

class App extends StatelessWidget {
  const App({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      //主题设置
      //路由设置
      // routes: {
      //   '/login': (context)=>LoginPage(),     //配置登录页
      //   '/home': (context)=>HomePage(),       //配置登录后跳转到的首页
      // },
      routes: appRoutes,
      initialRoute: '/login',                   //默认的初始页面
      //外观设置
      debugShowCheckedModeBanner: false,
      //主页设置
      // home: LoginPage(),
    );
  }
}
